
public class JavaVMStackSOF {
	private int stackLength;

	public void stackLeak() {
		stackLength++;
		stackLeak();
	}
	
	public static void main(String[] args) {
		JavaVMStackSOF javaVMStackSOF = new JavaVMStackSOF();
		try {
			javaVMStackSOF.stackLeak();
		} catch (Throwable e) {
			System.out.println("stackLength ：" + javaVMStackSOF.stackLength);
			throw e;
		}
	}
}
